/*
 * @Description:
 * @Author: Dxcr
 * @Date: 2025-02-28 11:17:18
 * @LastEditTime: 2025-04-03 15:26:48
 * @LastEditors: Dxcr
 */
import request,{download} from "@/utils/request";
// GET
// /list
// get请求
export const getList = (query) => {
  return request({
    url: "/getList",
    method: "get",
    params: query,
  });
};

// GET
// excel导出
export const alarmListExport = (query) => {
  download({
    url: "/excel",
    method: "get",
    params: query,
    filename:`报警数据_${new Date().getTime()}.xlsx`
  })
};